import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:get/get.dart';

import 'localstorage.dart';
import 'page/home/index.dart';
import 'page/login/index.dart';
import 'page/notfound/index.dart';
import 'routes.dart';

SystemUiOverlayStyle uiStyle = SystemUiOverlayStyle.light.copyWith(
  statusBarColor: Colors.white,
);

//App入口
void main() {
  // 单独改变状态栏颜色
  SystemChrome.setSystemUIOverlayStyle(uiStyle);

  runApp(GetMaterialApp(
    debugShowCheckedModeBanner: false,
    theme: ThemeData(
        backgroundColor: Colors.white,
        primaryColor: Colors.white,
        iconTheme: IconThemeData(color: Colors.black)),
    initialRoute: Routes.login,
    getPages: [
      GetPage(name: Routes.home, page: () => HomePage()),
      GetPage(name: Routes.login, page: () => LoginPage()),
    ],
    unknownRoute: GetPage(name: Routes.notfound, page: () => NotFoundPage()),
  ));
}
